<%--
  Created by IntelliJ IDEA.
  User: Michael Komarichin
  Date: Mar 14, 2010
  Time: 10:42:12 PM
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@include file="/WEB-INF/includes/tags.jsp" %>
<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
<script type="text/javascript">
    bkLib.onDomLoaded(function() {
        nicComment = new nicEditor({fullPanel : true}).panelInstance('user_comment');
    });
    function send() {
        postComment('comment_form', nicComment.instanceById('user_comment').getContent());
        nicComment.instanceById('user_comment').setContent('');
    }
</script>
<div>
    <s:text name="ui.email"/>:<s:textfield name="comment.email" value="%{userService.email}"/>&nbsp;<s:text
        name="ui.username"/>:<s:textfield name="comment.user" value="%{userService.userNickname}"/>
</div>
<div>
    <s:text name="ui.comment"/>:<br/>

    <div id="user_comment" style="width:820px;height:100px;border:solid 1px #cccccc;"></div>
</div>

<input type="button" onclick="send()" value="<s:text name='ui.confirm'/>"/>